package com.meatball.authorization.data.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

@Schema(description = "注册用户参数类")
data class RegisterParams(
        @Schema(description = "用户名", example = "zhangsan", required = true)
        @NotBlank(message = "用户名不能为空")
        val username: String,

        @Schema(description = "密码", example = "3238cd41307062a8256c427ac9723baa", required = true)
        @NotBlank(message = "密码不能为空")
        val password: String,

        @Schema(description = "真实姓名", example = "张三")
        val realName: String,

        @Schema(description = "头像", example = "https://meatball.org.cn:8000/images/2024/03/07/v2-3441507db209572e47109f8ca3f534de_r.jpg")
        val avatar: String
)
